package ae.pcfc.etks.online.itworx.ehs.web.service;

import java.util.List;
import java.util.Map;

import ae.pcfc.etks.online.itworx.ehs.web.exception.WorkFlowException;
import ae.pcfc.etks.online.itworx.ehs.wf.service.types.K2WorklistItem;

public interface WorkflowService {
	
	int createProcess(String processName, Map<String, String> workflowMap) throws WorkFlowException ;
	boolean isOfficer(String officerName) throws WorkFlowException;
	boolean doAction(String doAction, String userName,
	String action, Map<String, String> workflowMap, boolean isOfficer) throws WorkFlowException;
	List<K2WorklistItem> getActiveTasks(String processName, String userName, boolean isOffecier, boolean isAssigned) throws WorkFlowException;
	String[] getDelegatedUsers(String userName) throws WorkFlowException;
}
